#include "stdafx.h"
#include "./inputmgr.h"
#include "./inputobj.h"

InputObj::InputObj()
{
	InputMgr::GetInstance().OnMouseMove += EventObject<OnMouseInputFunc>(this, &InputObj::OnMouseMove);
	InputMgr::GetInstance().OnMouseLButtonDown += EventObject<OnMouseInputFunc>(this, &InputObj::OnMouseLButtonDown);
	InputMgr::GetInstance().OnMouseLButtonUp += EventObject<OnMouseInputFunc>(this, &InputObj::OnMouseLButtonUp);
}

InputObj::~InputObj()
{
	InputMgr::GetInstance().OnMouseMove -= EventObject<OnMouseInputFunc>(this, &InputObj::OnMouseMove);
	InputMgr::GetInstance().OnMouseLButtonDown -= EventObject<OnMouseInputFunc>(this, &InputObj::OnMouseLButtonDown);
	InputMgr::GetInstance().OnMouseLButtonUp -= EventObject<OnMouseInputFunc>(this, &InputObj::OnMouseLButtonUp);
}

void InputObj::OnMouseMove(Point pos)
{

}

void InputObj::OnMouseLButtonDown(Point pos)
{

}

void InputObj::OnMouseLButtonUp(Point pos)
{

}